package com.crm.dao.mapper.customMapper.customerManagerCustomMapper;

import com.crm.model.qo.customerManager.SingleProductCustomerQO;
import com.crm.model.vo.customerManager.SingleProductCustomerVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2021/4/29 15:33
 */
public interface SingleProductCustomerCustomMapper {

    /**
     * 客户管理-单品客户-超级管理员
     * @Author pym
     * @Date  2021/4/29 15:36
     * @param singleProductCustomerQO -查询条件
     * @param dateUnit -日期类型(全部/本周/本月/本年度)
     * @param sortOrder -排序列
     * @return {@link {java.util.List<com.crm.model.vo.customerManager.SingleProductCustomerVO>}}
     */
    List<SingleProductCustomerVO> selectAllSingleProductCustomerList(@Param("singleProductCustomerQO") SingleProductCustomerQO singleProductCustomerQO,
                                                                     @Param("dateUnit") Integer dateUnit, @Param("sortOrder") String sortOrder);

    /**
     * 客户管理-单品客户
     * @Author pym
     * @Date  2021/4/29 15:45
     * @param singleProductCustomerQO -查询条件
     * @param dateUnit -日期类型(全部/本周/本月/本年度)
     * @param sortOrder -排序列
     * @param accountId -账号ID
     * @return {@link {java.util.List<com.crm.model.vo.customerManager.SingleProductCustomerVO>}}
     */
    List<SingleProductCustomerVO> selectNormalSingleProductCustomerList(@Param("singleProductCustomerQO") SingleProductCustomerQO singleProductCustomerQO,
                                                      @Param("dateUnit") Integer dateUnit, @Param("sortOrder") String sortOrder,
                                                      @Param("accountId") String accountId);
}
